# 第二题查找

li = ["alec", " aric", "Alex", "Tony ", "rain"]
tu = ("alec", " aric", "Alex", "Tony ", "rain")
dic = {'k1': "alex", 'k2': ' aric', "k3": "Alex", "k4": "Tony"}

for x in li:
    str = x.lstrip()
    if str[0] == "a" or str[0] == "A":
        if str[len(str) - 1] == "c":
            print(str)


def Find(a):
    for x in a:
        str = x.lstrip()
        if str[0] == "a" or str[0] == "A":
            if str[len(str) - 1] == "c":
                print(str)


def find(a):
    str = list(a)
    print(str)


find(dic)
